package edu.uit.se.slgroup.construct.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import edu.uit.se.slgroup.construct.dao.CategoryDao;
import edu.uit.se.slgroup.construct.domain.Category;

public class CategoryServiceImpl implements CategoryService{
	
	@Autowired
	CategoryDao categoryDao;
	
	
	public int insertCategory(Category category) {
		return categoryDao.insertCategory(category);
	}

	
	public List<Category> getCategoryList() {
		return categoryDao.getCategoryList();
	}

	
	public Category getCategoryById(int id) {
		return categoryDao.getCategoryById(id);
	}

	public int updateCategory(Category category) {
		return categoryDao.updateCategory(category);
	}

	public int deleteCategory(int id) {
		return categoryDao.deleteCategory(id);
	}

}
